//INI config file parser
//

#ifndef _AX_INI_H_
#define _AX_INI_H_

#include <map>
#include <string>

class AxIniParser
{
public:
	AxIniParser();
	int parse(const char* file);
	int get_int(const char* sec, const char* name);
	int get_error() { return _err;}
	const char*	get_string(const char* sec, const char* name);
private:
	std::map<std::string, std::string> _values;
	static std::string makekey(const char* sec, const char* name);
	int _err;
};


#endif

